package com.naiterui.ehp.bs.esign.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.naiterui.ehp.bp.bo.ca.EmrSignBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * @Description 调用病例服务
 * @Author gongbaoqiang
 * @Date 2019/12/4 9:13 PM
 */
@FeignClient(name = "esignEmr", url = "${ehp.domain.emr}", configuration = FeignConfiguration.class)
public interface IEmrFeignClient {

    /**
     * 处方签名结果回调
     *
     * @param signResultVO
     */
    @PostMapping("inner/esign/sign/result")
    void signResult(@RequestBody EmrSignBO signResultVO) throws BusinessException;

}